﻿using System.ComponentModel;

namespace Gateway.Common.Models
{
    /// <summary>
    /// 系统编码
    /// </summary>
    public enum SystemErrorCode
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        [Description("请求成功")]
        Success=0,
        /// <summary>
        /// 登录超时
        /// </summary>
        [Description("登录超时")]
        LoginExpress = 10001,
        /// <summary>
        /// 没有权限
        /// </summary>
        [Description("没有权限")]
        NoAuth = 10002,
        /// <summary>
        /// 没有操作权限
        /// </summary>
        [Description("没有操作权限")]
        NoOperateAuth = 10003,
        /// <summary>
        /// 已在别处登录
        /// </summary>
        [Description("已在别处登录")]
        HasOtherLogin = 10004,
        /// <summary>
        /// 时间戳无效
        /// </summary>
        [Description("时间戳无效")]
        TimeStampIsInValid = 40001,
        /// <summary>
        /// 请求已过时
        /// </summary>
        [Description("请求已过时")]
        RequestIsObsolete = 40002,
        /// <summary>
        /// 请求被限流
        /// </summary>
        [Description("请求被限流")]
        DeniedRequest = 40003,
        /// <summary>
        /// 请求失败
        /// </summary>
        [Description("请求失败")]
        Fail = 50000,
        /// <summary>
        /// 不支持此请求
        /// </summary>
        [Description("不支持此请求")]
        MethodIsNotSupport = 50001,
        /// <summary>
        /// 参数不能为空
        /// </summary>
        [Description("参数不能为空")]
        ParameterIsNotNull = 60001,
        /// <summary>
        /// 解密无效
        /// </summary>
        [Description("解密无效")]
        DecryptIsNotAvailable = 70001,
        /// <summary>
        /// 签名错误
        /// </summary>
        [Description("签名错误")]
        SignIsError = 80001,
        /// <summary>
        /// 参数验证错误
        /// </summary>
        [Description("参数验证错误")]
        ModelValidateError = 90001,
        /// <summary>
        /// 系统异常
        /// </summary>
        [Description("系统异常")]
        SystemError = 90002,
        /// <summary>
        /// 无效数据
        /// </summary>
        [Description("无效数据")]
        DataIsNotAvailable =90003
    }
}